package com.dogdays.account.service;

import com.dogdays.account.generated.tables.pojos.User;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;

/**
 * Created by wuban on 2017/3/20.
 */
public interface UserService {

    @Fluent
    UserService addUser(User user, Handler<AsyncResult<Void>> resultHandler);

    @Fluent
    UserService deleteUser(User user, Handler<AsyncResult<Void>> resultHandler);

    @Fluent
    UserService updateUser(User user, Handler<AsyncResult<Void>> resultHandler);

    @Fluent
    UserService queryById(Long id, Handler<AsyncResult<User>> resultHandler);
}
